// pages/homePage/homePage.js
let {productData} = require("../../utils/data")

Page({
  data:{
    list:[
      {text:"按风格"},
      {text:"按户型"},
      {text:"按空间"}
    ],
    list1:[
        {
          id:1,
          image:[
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/fg1.png"
            },
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/fg2.png"
            },
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/fg3.png"
            },
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/fg4.png"
            },
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/fg5.png"
            },
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/fg6.png"
            },
          ]
        },
        {
          id:2,
          image:[
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/hx1.png",
            },
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/hx2.png",
            },
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/hx3.png",
            },
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/hx4.png",
            },
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/hx5.png",
            },
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/hx6.png",
            },
          ]
        },
        {
          id:3,
          image:[
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/kj1.png",
            },
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/kj2.png",
            },
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/kj3.png",
            },
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/kj4.png",
            },
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/kj5.png",
            },
            {
              url:"https://gitee.com/seec1-guoxuehai-organization/images/raw/master/image/wzj/kj6.png",
            },
          ]
        },
    ],
    productData,

  },
  zxfg(){
    wx.navigateTo({
      url: '../zxfg/zxfg',
    })
  },
  xzx(){
    wx.switchTab({
      url: '../LearnToDecorate/LearnToDecorate',
    })
  },
  xsj(){
    wx.switchTab({
      url: '../learninDdesign/learninDdesign',
    })
  },
  l(){
    wx.navigateTo({
      url: '../Decorationquotation/Decorationquotation',
    })
  },
  r(){
    wx.navigateTo({
      url: '../Apartmentlayoutdesign/Apartmentlayoutdesign',
    })
  },
  gd(){
    wx.switchTab({
      url: '../learninDdesign/learninDdesign',
    })
  },
  onLoad(){
    this.setData({
      hiden:0
    })
  },
  top(e){
    console.log(e)
    this.setData({
      hiden:e.currentTarget.dataset.id
    })
  },
  bjshbc(){
    wx.navigateTo({
      url: '../Decorationquotation/Decorationquotation',
    })
  },
  gd(){
    wx.switchTab({
      url: '../learninDdesign/learninDdesign',
    })
  },
  ksj(){
    wx.switchTab({
      url: '../learninDdesign/learninDdesign',
    })
  },
  kalbtn(e){
    console.log(e)
   let id = e.currentTarget.dataset.id
   wx.navigateTo({
     url: '/pages/kal/kal?id='+id,
   })
  }

})  